<include file="public@header"/>
</head>
<body>
<div class="layui-fluid js-check-wrap">
    

    <form action="{:url('Site/addPost')}" method="post" class="layui-form js-ajax-form margin-top-20">
        <div class="smart-widget widget-blue">
            <div class="layui-card">
                <div class="layui-card-header">{:lang('ADMIN_SITE_ADD')}</div>
                <div class="layui-card-body">
                    <div class="layui-form-item">
                        <label class="layui-form-label">{:lang('SITE_NAME')}</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" name="name">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">{:lang('SITE_DOMAIN')}</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" name="domain"></input>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <if condition="cmf_auth_check(cmf_get_current_admin_id(), 'admin/Site/addPost')">
                                <button type="submit" class="layui-btn layui-btn-normal js-ajax-submit">{:lang("SAVE")}</button>
                            </if>
                            <a class="layui-btn layui-btn-primary" href="{:url('Site/index')}">{:lang("BACK")}</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>

<include file="public@footer"/>
